lib: Fix leak in bootconfig parser
authorColin Walters <walters@verbum.org>
Sun, 24 Jul 2016 19:45:02 +0000 (15:45 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 28 Jul 2016 10:10:17 +0000 (10:10 +0000)
Pretty simple.

Closes: #410
Approved by: giuseppe

src/libostree/ostree-bootconfig-parser.c

index 661e759da11e19af7946298aff29caf35e82370a..6ca4df1d928b3913f18dff4618686dfedc71a1fb 100644 (file)
@@ -244,7 +244,7 @@ static void
 ostree_bootconfig_parser_init (OstreeBootconfigParser *self)
 {
   self->options = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
-  self->lines = g_ptr_array_new ();
+  self->lines = g_ptr_array_new_with_free_func (g_variant_unref);
 }
 
 void